package com.fc.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.fc.entity.SysPageSet;
import com.fc.mapper.SysPageSetMapper;
import com.fc.service.SysPageSetService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author zffc
 * @since 2023-07-26
 */
@Service
public class SysPageSetServiceImpl extends ServiceImpl<SysPageSetMapper, SysPageSet> implements SysPageSetService {

    @Override
    public List<SysPageSet> getPageSetByTable(String id, Integer type) {
        LambdaQueryWrapper<SysPageSet> queryWrapper = new LambdaQueryWrapper<SysPageSet>();
        queryWrapper.eq(SysPageSet::getTableId,id)
                .eq(SysPageSet::getType,type);
        return list(queryWrapper);
    }
}
